package io.renren.modules.sys.back.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.back.dao.BtCtGongzhuoyuanliDao;
import io.renren.modules.sys.back.entity.BtCtGongzhuoyuanliEntity;
import io.renren.modules.sys.back.service.BtCtGongzhuoyuanliService;


@Service("btCtGongzhuoyuanliService")
public class BtCtGongzhuoyuanliServiceImpl extends ServiceImpl<BtCtGongzhuoyuanliDao, BtCtGongzhuoyuanliEntity> implements BtCtGongzhuoyuanliService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BtCtGongzhuoyuanliEntity> page = this.selectPage(
                new Query<BtCtGongzhuoyuanliEntity>(params).getPage(),
                new EntityWrapper<BtCtGongzhuoyuanliEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public Long insertOneBackprimkey(BtCtGongzhuoyuanliEntity entity){
        return baseMapper.insertOneBackprimkey(entity);
    }
}
